import Vue from "vue";
import App from "./App.vue";
import router from "./router/index";
import "@/assets/style/index.less";
import store from "./store/index";

// 引入vue-cookie插件
import '@/utils/cookie'

// 引入elementui
import 'element-ui/lib/theme-chalk/index.css'
import element from './element/index'
Vue.use(element)

// 引入datav
import datav from './datav/index'
Vue.use(datav)

// 挂载refreshToken函数
import refreshToken from '@/utils/refreshtoken'
Vue.use(refreshToken)


// 把变量挂载到vue的原型上
import axios from "@/utils/request";
Vue.prototype.$axios = axios;

// 全局引入mixin
import mixin from "./mixin/index";
Vue.mixin(mixin);

// 阻止生产模式
Vue.config.productionTip = false;

new Vue({
  store,
  router,
  render: h => h(App)
}).$mount("#app");